package cn.seaboot.admin.security.bean;



import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.Size;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Arrays;

/**
 * POJO
 * 权限链 [t_sys_security_chain]
 *
 * @author ChenSS on  2019-12-31 09:45
 */
@Schema(description = "权限链 [t_sys_security_chain] 实体类")
public class SecurityChain implements Serializable {
    private static final long serialVersionUID = -7113574238150003524L;
    /**
     * ID
     */
    @NotNull
    @Schema(description = "ID")
    private String id;
    /**
     * 地址
     */
    @NotNull
    @Schema(description = "地址")
    private String antPath;
    /**
     * 请求方式
     */
    @NotNull
    @Schema(description = "请求方式")
    private String requestMethod;
    /**
     * 鉴权类型
     */
    @NotNull
    @Schema(description = "鉴权类型")
    private String authorityType;
    /**
     * 权限表达式
     */
    @NotNull
    @Schema(description = "权限表达式")
    private String expression;
    /**
     * 是否可用
     */
    @NotNull
    @Schema(description = "是否可用")
    private Boolean isDisabled;
    /**
     * 描述
     */
    @NotNull
    @Schema(description = "描述")
    private String description;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAntPath() {
        return antPath;
    }

    public void setAntPath(String antPath) {
        this.antPath = antPath;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getAuthorityType() {
        return authorityType;
    }

    public void setAuthorityType(String authorityType) {
        this.authorityType = authorityType;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public Boolean getIsDisabled() {
        return isDisabled;
    }

    public void setIsDisabled(Boolean isDisabled) {
        this.isDisabled = isDisabled;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "SecurityChain{" +
                "id='" + id + '\'' +
                ", antPath='" + antPath + '\'' +
                ", requestMethod='" + requestMethod + '\'' +
                ", authorityType='" + authorityType + '\'' +
                ", expression='" + expression + '\'' +
                ", isDisabled=" + isDisabled +
                ", description='" + description + '\'' +
                '}';
    }
}
